<?php

namespace ticket\modules\frontend\models;

use Yii;

/**
 * This is the model class for table "tk_ticket_additional".
 *
 * @property int $nid
 * @property int $tid
 * @property string $image_url
 * @property string $albums_url
 * @property string $describe
 * @property string $product_intr
 * @property string $buy_notice
 * @property string $free_peo
 * @property string $is_refund
 * @property string $belong
 */
class TicketAdditional extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'tk_ticket_additional';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['tid'], 'required'],
            [['tid'], 'integer'],
            [['is_refund'], 'string'],
            [['image_url', 'describe'], 'string', 'max' => 255],
            [['albums_url', 'product_intr', 'buy_notice'], 'string', 'max' => 1024],
            [['free_peo'], 'string', 'max' => 512],
            [['belong'], 'string', 'max' => 64],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'nid' => 'Nid',
            'tid' => 'Tid',
            'image_url' => 'Image Url',
            'albums_url' => 'Albums Url',
            'describe' => 'Describe',
            'product_intr' => 'Product Intr',
            'buy_notice' => 'Buy Notice',
            'free_peo' => 'Free Peo',
            'is_refund' => 'Is Refund',
            'belong' => 'Belong',
        ];
    }
}
